package com.springcloud.alibaba.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author:RenPu
 * @Date: 2020/7/2 17:09
 * @Version: 1.0
 * @description:
 */

@RestController
public class NacosProviderController {


    @Value( "${server.port}" )
    private String SERVER_PORT;

    @GetMapping("/nacos/resgister/test")
    public String nacosResgisreTest(){
        return "******已经完成nacos的注册了o(*￣︶￣*)o*********"+ UUID.randomUUID().toString()+"所注册服务的端口为："+SERVER_PORT;
    }
}
